from django.db import models
from django.contrib.auth.models import User
from django.newforms import ModelForm

# Create your models here.

class LabImage(models.Model):
    user = models.ForeignKey(User)
    image = models.ImageField(
        'Lab Image',
        upload_to = 'labimage',
    )
    class Admin:
	pass

class LabFile(models.Model):
    user = models.ForeignKey(User)
    file = models.FileField(
        'Lab File',
        upload_to = 'labfile',
    )
    class Admin:
	pass

class LabImageForm(ModelForm):
    class Meta:
        model = LabImage
        exclude = ('user',)
        
class LabFileForm(ModelForm):
    class Meta:
        model = LabFile
        exclude = ('user',)


    
    